package stcu;

import com.nvlled.route.*;
import stcu.robjects.*;
import java.util.*;

public class Account implements java.io.Serializable {

    public static final Account VOID = new Account("-1");

	private String idNumber;
	private String lastName;
	private String firstName;

	
	public Account(String idNumber, String lastName, String firstName){
		this.idNumber = idNumber;
		this.lastName = lastName;
		this.firstName = firstName;
	}

    public Account(String idNumber) {
        this(idNumber, "", "");
    }

	
	public String getIDNumber(){
		return idNumber;
	}
	
	public String getLastName(){
		return lastName;
	}
	
	public String getFirstName(){
		return firstName;
	}

    public String getName() {
        return getFirstName() + " " + getLastName();
    }

    @Override
    public String toString() {
        return getName();
    }
	
    @Override
	public boolean equals(Object obj){
		Account other = (Account) obj;
		return getIDNumber().equals(other.getIDNumber());
	}
		
    @Override
	public int hashCode(){
		return getIDNumber().hashCode();
	}
}
